const Mock = require('mockjs')
const fs = require('fs')

const data = Mock.mock({
    'list': [
        {
            'img': '@image(100x100, @color)',
            'word': '@cword(10, 20)',
            'price|20-100': 1 
        }
    ]
})

fs.writeFileSync('./data.json', JSON.stringify(data))